package com.example.demo.client.vm.sysbasequery;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.util.List;

/**
 * 日志统计柱状图信息
 * @Author zhengmf
 * @Date 2019/1/14  17:02
 */
@ApiModel("日志统计柱状图信息")
public class HistogramVm implements Serializable {
    private static final long serialVersionUID = 4555874344068299279L;
    @ApiModelProperty("x轴名称")
    private String xName;
    @ApiModelProperty("y轴名称")
    private String yName;
    @ApiModelProperty("标题")
    private String title;
    @ApiModelProperty("KEY")
    private String key;
    @ApiModelProperty("数据")
    private List<LogStatisticsVm> data;

    public HistogramVm() {
    }

    public HistogramVm(String xName, String yName, String title) {
        this.xName = xName;
        this.yName = yName;
        this.title = title;
    }

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public String getxName() {
        return xName;
    }

    public void setxName(String xName) {
        this.xName = xName;
    }

    public String getyName() {
        return yName;
    }

    public void setyName(String yName) {
        this.yName = yName;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public List<LogStatisticsVm> getData() {
        return data;
    }

    public void setData(List<LogStatisticsVm> data) {
        this.data = data;
    }

    @Override
    public String toString() {
        return "HistogramVm{" +
            "xName='" + xName + '\'' +
            ", yName='" + yName + '\'' +
            ", title='" + title + '\'' +
            ", data=" + data +
            '}';
    }
}
